package com.zelin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zelin.common.utils.PageUtils;
import com.zelin.gulimall.product.entity.AttrEntity;
import com.zelin.gulimall.product.vo.AttrRespVo;
import com.zelin.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wangfeng
 * @email wangfeng@gmail.com
 * @date 2020-12-05 11:33:07
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId,String attrType);

    void saveAttrVo(AttrVo attr);

    AttrRespVo attrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> relationAttr(long attrgroupId);

    PageUtils relationNoAttr(Map<String, Object> params, long attrgroupId);

    List<Long> getAttrIdsBySelectType(List<Long> attrIds);
}

